package com.os.start.mapper;

import com.os.start.pojo.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Matt on 2022-01-04.
 */
@Mapper
public interface UserInfoDao {

    List<UserInfo> queryUser();

    UserInfo getUserById(@Param("id") String id);

    int updateUser(@Param("user") UserInfo userInfo);

    int insertUser(@Param("user") UserInfo userInfo);

    int deleteUserById(@Param("id") String id);

}
